package online.heycm.rbac.service.basic;

import online.heycm.platform.common.entity.result.Optional;
import online.heycm.platform.common.entity.result.PageResult;
import online.heycm.rbac.param.basic.DictionaryAddReq;
import online.heycm.rbac.param.basic.DictionaryEditReq;
import online.heycm.rbac.param.basic.DictionaryPageReq;
import online.heycm.rbac.param.basic.DictionaryRes;

import java.util.List;

/**
 * 字典业务
 *
 * @author hey
 * @version 1.0
 * @date 2024/1/12 9:04
 */
public interface DictionaryService {

    Optional addDictionary(DictionaryAddReq req);

    Optional editDictionary(DictionaryEditReq req);

    Optional<DictionaryRes> queryDetail(Integer dictId);

    Optional<PageResult<DictionaryRes>> pageDictionary(DictionaryPageReq req);

    Optional<List<DictionaryRes>> listDictionary(String dicAlias);
}
